package o;

import java.util.Arrays;
import kotlin.KotlinNullPointerException;

public class fsd {
    private fsd() {
    }

    public static void ˎ() {
        throw ((KotlinNullPointerException) ˋ(new KotlinNullPointerException()));
    }

    public static void ॱ(Object obj, String str) {
        if (obj == null) {
            throw ((IllegalStateException) ˋ(new IllegalStateException(str + " must not be null")));
        }
    }

    public static void ˊ(Object obj, String str) {
        if (obj == null) {
            ॱ(str);
        }
    }

    private static void ॱ(String str) {
        StackTraceElement stackTraceElement = Thread.currentThread().getStackTrace()[3];
        String className = stackTraceElement.getClassName();
        throw ((IllegalArgumentException) ˋ(new IllegalArgumentException("Parameter specified as non-null is null: method " + className + "." + stackTraceElement.getMethodName() + ", parameter " + str)));
    }

    public static boolean ˋ(Object obj, Object obj2) {
        if (obj == null) {
            return obj2 == null;
        } else {
            return obj.equals(obj2);
        }
    }

    private static <T extends Throwable> T ˋ(T t) {
        return ˊ((Throwable) t, fsd.class.getName());
    }

    static <T extends Throwable> T ˊ(T t, String str) {
        StackTraceElement[] stackTrace = t.getStackTrace();
        int length = stackTrace.length;
        int i = -1;
        for (int i2 = 0; i2 < length; i2++) {
            if (str.equals(stackTrace[i2].getClassName())) {
                i = i2;
            }
        }
        t.setStackTrace((StackTraceElement[]) Arrays.copyOfRange(stackTrace, i + 1, length));
        return t;
    }
}
